package cn.zymall.order.controller;

import cn.zymall.common.controller.crud.BaseController;
import cn.zymall.common.model.OrderAfter;
import cn.zymall.order.service.OrderAfterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xuxianda
 * @Description: 订单售后控制层类
 * @date 2020/8/25 15:24
 * @Copyright
 * @return
 **/
@RestController
@RequestMapping("orderAfter")
public class OrderAfterController extends BaseController<OrderAfterService, OrderAfter> {


	@Autowired
	private OrderAfterService orderAfterService;

	/**
	 * 处理售后
	 * @param orderAfter
	 */
	@PostMapping("/handleOrderAfter")
	public void handleOrderAfter(OrderAfter orderAfter){
		orderAfterService.handleOrderAfter(orderAfter);
	}
}
